Skip to main content

templateCard

Type

keyword

Summary

Used with the set command to set the properties of newly created cards.

Syntax

templateCard

Description

Use the templateCard keyword to set up default properties to be used for any new cards you create.

The templateCard can be thought of as a special, abstract object. It is not an actual card, but it has all the properties of a card. The ID property of the templateCard is zero.

You can use the set command to set the properties of the templateCard before creating a card. The new card has the properties of the templateCard, by default. Changing the properties of the templateCard does not affect existing cards.

The properties of the templateCard can be returned to the default settings using the reset command.

You can refer to the templateCard using any of the following forms:

    templateCard
the templateCard
templateCard()
note

The templateCard keyword is implemented internally as a function and appears in the functionNames. However, it cannot be used as a function in an expression.

Examples

set the backgroundColor of the templateCard to "yellow"

glossary: object, keyword, property, command, expression

keyword: templateScrollbar, default, card

object: card

property: properties, ID

command: create card, reset, set

control structure: function

function: functionNames

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?